import layoutHeaderAside from '@/layout/header-aside'

// 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/libs/util.import.' + process.env.NODE_ENV)

const meta = { auth: true }

export default {
  path: '/system',
  name: 'systemuser',
  meta,
  redirect: { name: 'systemuser' },
  component: layoutHeaderAside,
  children: [
    { path: '/systemuser', name: 'systemuser', component: _import('system/systemuser/index.vue'), meta: { ...meta, title: '系统用户' } },
    { path: '/tSystemMenu', name: 'tSystemMenu', component: _import('system/tSystemMenu/index.vue'), meta: { ...meta, title: '菜单管理' } },
    { path: '/tSystemRole', name: 'tSystemRole', component: _import('system/tSystemRole/index.vue'), meta: { ...meta, title: '角色管理' } },
    { path: '/tSystemTenant', name: 'tSystemTenant', component: _import('system/tSystemTenant/index.vue'), meta: { ...meta, title: '租户管理' } },
  ]
}
